package com.crmapi.mapper;

import com.crmapi.pojo.Approval;
import com.crmapi.pojo.ApprovalProcess;
import com.crmapi.pojo.ApprovalReciver;
import com.crmapi.pojo.Reciver;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>Project: CRMSystem - ApprovalMapper</p>
 * <p>Powered by yzc On 2023-12-04 20:16:09</p>
 * <p>描述：<p>
 *
 * @author yzc [yzc0415@126.com]
 * @version 1.0
 * @since 17
 */
@Mapper
public interface ApprovalMapper {

    //查询审批人和抄送人
   ApprovalProcess queryByType(Integer  bustype);


   //插入审批记录
    int save(Approval approval);

    //插入抄送人记录
    int saveReciver(@Param("mid") String mid, @Param("reciverList") List<Reciver> reciverList);

    //查询审核表最大的code
    String queryCode();

    //查询审核表
    List<Approval> queryList(String code,String applicant,Integer type,String apptime,Integer status);
}
